GM.MinimumRacers = CreateConVar("hovergear_minracers", "2", FCVAR_REPLICATED + FCVAR_ARCHIVE + FCVAR_NOTIFY, "Specifies the amount of racers that requires in the queue list."):GetInt()
cvars.AddChangeCallback("hovergear_minracers", function(cvar, oldvalue, newvalue)
	GAMEMODE.MinimumRacers = math.max(0, tonumber(newvalue) or 0)
	--gmod.BroadcastLua("GAMEMODE.MinimumRacers="..tostring(GAMEMODE.MinimumRacers))
end)

GM.MaximumRacers = CreateConVar("hovergear_maxracers", "12", FCVAR_REPLICATED + FCVAR_ARCHIVE + FCVAR_NOTIFY, "Specifies the amount of racers that can be on the queue list."):GetInt()
cvars.AddChangeCallback("hovergear_maxracers", function(cvar, oldvalue, newvalue)
	GAMEMODE.MaximumRacers = math.max(0, tonumber(newvalue) or 0)
	--gmod.BroadcastLua("GAMEMODE.MaximumRacers="..tostring(GAMEMODE.MaximumRacers))
end)

GM.PreRaceCountdown = CreateConVar("hovergear_prerace", "25", FCVAR_REPLICATED + FCVAR_ARCHIVE + FCVAR_NOTIFY, "The amount (in seconds) it takes for the next race to start."):GetInt()
cvars.AddChangeCallback("hovergear_prerace", function(cvar, oldvalue, newvalue)
	GAMEMODE.PreRaceCountdown = math.max(0, tonumber(newvalue) or 0)
	--gmod.BroadcastLua("GAMEMODE.PreRaceCountdown="..tostring(GAMEMODE.PreRaceCountdown))
end)

GM.RaceTime = CreateConVar("hovergear_racetime", "600", FCVAR_REPLICATED + FCVAR_ARCHIVE + FCVAR_NOTIFY, "The amount (in seconds) it takes for the current race to last."):GetInt()
cvars.AddChangeCallback("hovergear_racetime", function(cvar, oldvalue, newvalue)
	GAMEMODE.RaceTime = math.max(0, tonumber(newvalue) or 0)
	--gmod.BroadcastLua("GAMEMODE.RaceTime="..tostring(GAMEMODE.RaceTime))
end)

GM.LapsToWin = CreateConVar("hovergear_laps", "3", FCVAR_REPLICATED + FCVAR_ARCHIVE + FCVAR_NOTIFY, "The amount of laps the players need to take in order to win."):GetInt()
cvars.AddChangeCallback("hovergear_laps", function(cvar, oldvalue, newvalue)
	GAMEMODE.LapsToWin = math.max(0, tonumber(newvalue) or 0)
	--gmod.BroadcastLua("GAMEMODE.LapsToWin="..tostring(GAMEMODE.LapsToWin))
end)